﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GatherWebLib.Model
{
   public class cTask_m
    {
        #region TaskProperty

        //以下为任务当前状态的属性，如果是新建任务，则应该为未启动
        //此属性有待考虑，当前未用
        public int TaskState
        {
            get { return this.TaskState; }
            set { this.TaskState = value; }
        }



        //*****************************************************************************************************************
        //以下定义为Task属性

        private int m_TaskID;
        public int TaskID
        {
            get { return m_TaskID; }
            set { m_TaskID = value; }
        }

        private string m_TaskName;
        public string TaskName
        {
            get { return m_TaskName; }
            set { m_TaskName = value; }
        }

      
       

        private int m_TaskClass;
        public int TaskClassID
        {
            get { return m_TaskClass; }
            set { m_TaskClass = value; }
        }

        private GatherWebLib.cGlobalParas.TaskType m_TaskType;
       /// <summary>
        /// 任务采集方式
       /// </summary>
        public GatherWebLib.cGlobalParas.TaskType TaskType
        {
            get { return m_TaskType; }
            set { m_TaskType = value; }
        }



        private GatherWebLib.cGlobalParas.TaskRunType m_RunType;
       /// <summary>
        /// 任务执行类型
       /// </summary>
        public GatherWebLib.cGlobalParas.TaskRunType TaskRunType
        {
            get { return m_RunType; }
            set { m_RunType = value; }
        }

        private int m_UrlCount;
        public int UrlCount
        {
            get { return m_UrlCount; }
            set { m_UrlCount = value; }
        }

        //private string m_DemoUrl;
        //public string DemoUrl
        //{
        //    get { return m_DemoUrl; }
        //    set { m_DemoUrl = value; }
        //}

        //private string m_Cookie;
        //public string Cookie
        //{
        //    get { return m_Cookie; }
        //    set { m_Cookie = value; }
        //}

        //private string m_WebCode;
        //public string WebCode
        //{
        //    get { return m_WebCode; }
        //    set { m_WebCode = value; }
        //}

        //private bool m_IsLogin;
        //public bool IsLogin
        //{
        //    get { return m_IsLogin; }
        //    set { m_IsLogin = value; }
        //}

        //private string m_LoginUrl;
        //public string LoginUrl
        //{
        //    get { return m_LoginUrl; }
        //    set { m_LoginUrl = value; }
        //}

        //private bool m_IsUrlEncode;
        //public bool IsUrlEncode
        //{
        //    get { return m_IsUrlEncode; }
        //    set { m_IsUrlEncode = value; }
        //}

        //private string m_UrlEncode;
        //public string UrlEncode
        //{
        //    get { return m_UrlEncode; }
        //    set { m_UrlEncode = value; }
        //}

    
        private int m_ThreadCount;
        public int ThreadCount
        {
            get { return m_ThreadCount; }
            set { m_ThreadCount = value; }
        }
        private int _level;
        private int _orderby;
        private GatherWebLib.cGlobalParas.EnumStatus _status;
        private DateTime _addtime;

        private int _fatherID;

        public int FatherID
        {
            set { _fatherID = value; }
            get { return _fatherID; }
        }

        /// <summary>
        /// 
        /// </summary>
        public int Level
        {
            set { _level = value; }
            get { return _level; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int OrderBy
        {
            set { _orderby = value; }
            get { return _orderby; }
        }
        /// <summary>
        /// 
        /// </summary>
        public GatherWebLib.cGlobalParas.EnumStatus Status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime AddTime
        {
            set { _addtime = value; }
            get { return _addtime; }
        }

        /// <summary>
        /// 页面地址、导航、分页
        /// </summary>
        private List<cWebLink_m> m_WebpageLink;
        public List<cWebLink_m> WebpageLink
        {
            get { return m_WebpageLink; }
            set { m_WebpageLink = value; }
        }

        private List<cWebpageCutFlag_m> m_WebpageCutFlag;
        public List<cWebpageCutFlag_m> WebpageCutFlag
        {
            get { return m_WebpageCutFlag; }
            set { m_WebpageCutFlag = value; }
        }

      
        private int m_GatherAgainNumber;
        public int GatherAgainNumber
        {
            get { return m_GatherAgainNumber; }
            set { m_GatherAgainNumber = value; }
        }

        private bool m_IsIgnore404;
        public bool IsIgnore404
        {
            get { return m_IsIgnore404; }
            set { m_IsIgnore404 = value; }
        }

        //是否去除重复的行
        private bool m_IsDelRepRow;
        public bool IsDelRepRow
        {
            get { return m_IsDelRepRow; }
            set { m_IsDelRepRow = value; }
        }

       


       
        #endregion
    }
}
